package com.zhangck.bos2_0.Service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zhangck.bos2_0.Service.AreaService;
import com.zhangck.bos2_0.dao.AreaRepository;

import cn.itcast.bos.domain.base.Area;

/** 
* @author 上午茶
* @version 创建时间：2018年5月30日 下午6:44:56 
* 类说明 
*/
@Service
@Transactional
public class AreaServiceImpl implements AreaService {
	@Autowired
	private AreaRepository areaRepository;
	@Override
	public void seveBacth(List<Area> list) {
		areaRepository.save(list);
	}
	@Override
	public Page<Area> findPageData(Specification<Area> specification, Pageable request) {
		return areaRepository.findAll(specification, request);
	}
	
}
